import sdk from 'redcatSdk'

const UUID = sdk.utils.id
/**
 * @params { Object } properties: 参考redcat-app,控件属性注册
 * @params { Object } componentProperties: 参考redcat-app,控件注册
 * */
const componentsDefaults = {
  properties: {
    'exampleAttr': {
      exampleAttr: 'exampleAttr'
    }
  },
  componentProperties: {
    'rc-example': {
      ctor: 'ColumnComponent',
      props: ['exampleAttr'],
      defaults: {
        name: '模版控件',
        componentType: 'rc-example',
        archive: {
          enable: true,
          defaultId: UUID.create(),
          tableId: undefined,
          columnId: undefined,
          dataType: 'varchar'
        },
        properties: {},
        pinyinName: '',
        pinyinFirstChar: ''
      }
    }
  }
}

export default componentsDefaults
